const NODE_ENV = process.env.NODE_ENV

const { merge } = require('webpack-merge')
const common = require('./webpack.common')
const dev = require('./webpack.dev')
const prod = require('./webpack.prod')

module.exports = () => {
  if (NODE_ENV === 'development') {
    return merge(common, dev)
  } else {
    return merge(common, prod)
  }
}